//
//  UIButton+Extension.swift
//  SinaWeibo
//
//  Created by zhuangqianwei on 16/11/14.
//  Copyright © 2016年 zhuangqianwei. All rights reserved.
//

import UIKit


//便利的构造函数，简化对象的创建

//分类
extension UIButton {
    
    
    /// 快速构造便利函数
    ///
    /// - Parameters:
    ///   - title: 标题
    ///   - textColor: 字体颜色
    ///   - fontSize: 字体大小
    convenience init(title: String, textColor: UIColor,fontSize: CGFloat){
        
        self.init()
        self.setTitle(title, for: .normal)
        self.setTitleColor(textColor, for: .normal)
        self.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
        
        
    }
    
    
    
    
    
}
